package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.mongo.Video;
import com.itheima.vo.PageBeanVo;

public interface VideoService {
    //根据用户id分页查询视频列表
    PageBeanVo findVideo(Long userId, Integer pageNum, Integer pageSize);

    //上传视频
    void saveVideo(Video video);

    //查询指定用户的视频列表
    PageBeanVo findUserVideoList(Long uid, Integer pageNum, Integer pageSize);

    //根据id查询视频
    Video findVideoById(String videoId);


    //视频评论列表
    PageBeanVo videoCommentList(Long userId, String videoId,Integer pageNum, Integer pageSize);

    //发布视频评论
    void saveComment(Comment comment);




}
